import { createActionGroup, props } from '@ngrx/store';
import { SelectedGraphObjectState, ZoomOperationState } from '../models/editor-model';

export interface IEditorAction {
  selectChange: any;
  zoomOperation: any;
}
// eslint-disable-next-line @typescript-eslint/naming-convention
export const EditorActions: IEditorAction = createActionGroup({
  source: 'Editor',
  events: {
    // eslint-disable-next-line @typescript-eslint/naming-convention
    'Select Change': props<{ payload: SelectedGraphObjectState }>(),
    // eslint-disable-next-line @typescript-eslint/naming-convention
    'Zoom Operation': props<{ payload: ZoomOperationState }>(),
  }
});
